Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use sub nav in forms nav #223

Merged
merged 11 commits into from
Jan 8, 2024
Merged

use sub nav in forms nav #223

merged 11 commits into from
Jan 8, 2024

Conversation

atmonshi
Copy link
Member

@atmonshi atmonshi commented Jan 5, 2024

no more ResponseResource:
so if you have any customizations or overwrites, you dont need it anymore, all the pages now inside the formResource

view files:
if you customizeing the blade view, make sure to update them all, and compare the changes
also added a new view:
resources/views/filament/resources/response-resource/pages/browse-entry.blade.php

Screenshot 2024-01-06 at 1 42 11 AM

Copy link

what-the-diff bot commented Jan 5, 2024

PR Summary

  • Remove ResponseResource from available resources
    The ResponseResource was removed from the list of available resources in the configuration file and from the resources array within the FormResource.php file. This result in simplifying the resources lineup.

  • Add File for Browsing Entries
    A new file containing a Blade template was added to allow users to easily browse through their entries.

  • Modify Template for Showing Entry Details
    There were major modifications made to the template file show-entry.blade.php that improved how entry details are displayed. This includes simplified access to required variables and improving the visibility of user details and status details.

  • Remove EntriesAction Trait
    The EntriesAction trait was removed across several files resulting in cleaner, less cluttered code.

  • Add ManageResponses and BrowseResponses Pages
    Two new pages were introduced within the FormResource.php file, creating a dedicated place for users to manage or browse their responses.

  • Modify ManageResponses Page
    Several adjustments were made to the previously ReportResponses page, which is now renamed as ManageResponses. These includes removal of certain methods, adjustment to URL construction for page, and enhancing the title for the page.

  • Update Functions and Properties in ViewForm Page
    Functions and elements that were not in use have been removed in ViewForm.php improving the processing speed and efficiency. An additional function was added to this file enhancing its capabilities.

  • Deletion of Several Files
    Multiple files in the ResponseResource directory including BrowseResponses.php, ListResponses.php and ViewResponse.php were removed as part of code cleanup, to make the overall project leaner.

  • Add Relationship Function in Response Model
    The addition of a function in Response.php model that defines a relationship has been added which would enhance database related operations.

Overall, these changes improve the code cleanliness, enhance user experience for browsing and managing form entries and responses, and it simplifies the relationships between different resources making the project easier to maintain.

@atmonshi atmonshi merged commit cbb0afc into 2.x Jan 8, 2024
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant